import request from '@/utils/request'

export function getAllOrganizationInfos() {
  return request({
    url: '/superManager/getAllOrganizationInfos',
    method: 'get',
  })
}

export function getAllOrganizationInfosByPageAndConditions(data) {
  return request({
    url: '/superManager/getAllOrganizationInfosByPageAndConditions',
    method: 'get',
    params:data
  })
}

export function addOrganizationInfo(data) {
  return request({
    url: '/superManager/addOrganizationInfo',
    method: 'post',
    data
  })
}

export function updateOrganizationInfo(data) {
  return request({
    url: '/superManager/updateOrganizationInfo',
    method: 'put',
    data
  })
}

export function deleteOrganizationInfo(id) {
  return request({
    url: '/superManager/deleteOrganizationInfo',
    method: 'delete',
    params:id
  })
}

export function deleteOrganizationsInfo(ids) {
  return request({
    url: '/superManager/deleteOrganizationsInfo',
    method: 'delete',
    params:ids
  })
}

